package com.aos.erp.schools.model.sys.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: erp
 * @description: 后台用户
 * @author: tanzhiyu
 * @create: 2018-10-31 10:10
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("后台用户")
public class UserVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="用户ID", hidden = true)
    private String id;

    @ApiModelProperty("用户名字")
    private String name;

    @ApiModelProperty(value="用户账号",hidden = true)
    private String username;

    @ApiModelProperty("部门组织code")
    private String depCode;

    @ApiModelProperty("岗位id")
    private Long positionId;

    @ApiModelProperty(value = "用户到期时间 （默认空表示长期）")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date expireDatetime;

    @ApiModelProperty(value = "操作人id", hidden = true)
    private Long operatorId;
}
